<template>
  <div class="app-container" style="height: 640px">
    <template-ambulance-station :to-station="queryParams.toStation" :tr-disabled="false"
                             @row-click="rowClick" @template-quote="quoteOk"/>

  </div>
</template>

<script lang="ts" setup>
import TemplateAmbulanceStation from '@/views/template/templateAmbulanceStation/index.vue'


const emits = defineEmits(["quoteOkIndex"])
const props = defineProps({
  queryParams: {
    type: Object as any
  },
  refreshKey: {
    type: Number,
    default: 0
  },
})
const templateMedicalRecordItemRef = ref()


function rowClick(row: any) {
  nextTick(() => {
    templateMedicalRecordItemRef.value.rowClick(row)
  })
}

// 模板引用 -》 最终数据处理
function quoteOk(form: any) {
  debugger
  emits("quoteOkIndex", form)
}

function emptyItem() {
  nextTick(() => {
    templateMedicalRecordItemRef.value.emptyItem()
  })
}

defineExpose({
  emptyItem,
  quoteOk
})
</script>
